﻿using System;
using DevExpress.XtraEditors.DXErrorProvider;

namespace MMS
{
    public class ViewMaterialDTO 
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the CustomerDTO class.
		/// </summary>
		public ViewMaterialDTO()
		{
            ReturnAmout = 0;
		}

        public ViewMaterialDTO(string materialId, string materialName, string unitId, string unitName, int price, int amount, int remaining, string repositoryId, string repositoryName, string address)
        {
            this.MaterialId = materialId;
            this.MaterialName = materialName;
            this.UnitId = unitId;
            this.UnitName = UnitName;
            this.PriceByDay = price;
            this.Amount = amount;
            this.Remaining = remaining;
            this.RepositoryId = repositoryId;
            this.RepositoryName = repositoryName;
            this.Address = address;
            this.RentAmount = 0;
            this.ReturnAmout = 0;
            //this.RentAmount = rentAmount;
        }

		#endregion

		#region Properties
		/// <summary>
        /// Gets or sets the MaterialId value.
		/// </summary>
		public string MaterialId { get; set; }

		/// <summary>
        /// Gets or sets the MaterialName value.
		/// </summary>
		public string MaterialName { get; set; }
        /// <summary>
        /// Gets or sets the UnitId value.
        /// </summary>
        public string UnitId { get; set; }

        /// <summary>
        /// Gets or sets the UnitName value.
        /// </summary>
        public string UnitName { get; set; }
		/// <summary>
        /// Gets or sets the PriceByDay value.
		/// </summary>
		public int PriceByDay { get; set; }

		/// <summary>
        /// Gets or sets the Amount value.
		/// </summary>
		public int Amount { get; set; }

		/// <summary>
        /// Gets or sets the Remaining value.
		/// </summary>
		public int Remaining { get; set; }

		/// <summary>
        /// Gets or sets the RepositoryName value.
		/// </summary>
		public string RepositoryName { get; set; }

		/// <summary>
        /// Gets or sets the RepositoryId value.
		/// </summary>
		public string RepositoryId { get; set; }

		/// <summary>
        /// Gets or sets the Address value.
		/// </summary>
		public string Address { get; set; }

        /// <summary>
        /// Gets or sets the RentAmount value.
        /// </summary>
        public int RentAmount { get; set; }

        public int ReturnAmout { get; set; }
       
		#endregion
    }
}
